package com.qk.management.aop.anno;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Cacheable {
    String key() default  "";

    String keyPrefix() default "";

    long expireTime() default 0;

   TimeUnit expireTimeUnit() default TimeUnit.SECONDS;
}
